package com.uplooking.pojo;

import java.util.UUID;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="tbldict")
public class DictVO {

	@Column(name="did")
	private String did;
	@Column(name="dtid")
	private Integer dtid;
	@Id
	@Column(name="dkey")
	private Integer dkey;
	@Column(name="dvalue")
	private String dvalue;
	@Column(name="dis")
	private Integer dis;
	public String getDid() {
		return did;
	}
	public void setDid(String did) {
		this.did = did;
	}
	public Integer getDtid() {
		return dtid;
	}
	public void setDtid(Integer dtid) {
		this.dtid = dtid;
	}
	public Integer getDkey() {
		return dkey;
	}
	public void setDkey(Integer dkey) {
		this.dkey = dkey;
	}
	public String getDvalue() {
		return dvalue;
	}
	public void setDvalue(String dvalue) {
		this.dvalue = dvalue;
	}
	public Integer getDis() {
		return dis;
	}
	public void setDis(Integer dis) {
		this.dis = dis;
	}
	public DictVO() {
		super();
	}
	public DictVO(Integer dtid, Integer dkey, String dvalue) {
		super();
		this.did = UUID.randomUUID().toString();
		this.dtid = dtid;
		this.dkey = dkey;
		this.dvalue = dvalue;
		this.dis = 1;
	}
	@Override
	public String toString() {
		return "DictVO [did=" + did + ", dtid=" + dtid + ", dkey=" + dkey + ", dvalue=" + dvalue + ", dis=" + dis + "]";
	}
	
	
}
